package com.ydd.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysRole implements Serializable {

    @TableId(type = IdType.ASSIGN_ID) // mp自动填充id
    private String id;

    private String name;

    private String description;

    @TableField(fill = FieldFill.INSERT)  // mp自动填充
    @JsonProperty("create_date")
    private LocalDateTime createDate;

    @TableField(fill = FieldFill.INSERT_UPDATE)  // mp自动填充
    @JsonProperty("update_date")
    private LocalDateTime updateDate;

    private String remarks;

    @TableLogic
    @JsonProperty("del_flag")
    private String delFlag;

    private Integer superadmin;

    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    @JsonProperty("default_data")
    private String defaultData;


}
